(compilation-error-regexp-alist): Tighten first regexp so that it
authorRoland McGrath <roland@gnu.org>
Wed, 7 Apr 1993 20:14:29 +0000 (20:14 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 7 Apr 1993 20:14:29 +0000 (20:14 +0000)
requires a colon or open-paren before the line number, not just
whitespace.

lisp/progmodes/compile.el

index 30697318ebccb36b9c7d7945b95365ac0988f03b..bf860e6c38f239dedc0babe0e4b616121b83ce0c 100644 (file)
@@ -108,7 +108,7 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
     ;; We'll insist that the number be followed by a colon or closing
     ;; paren, because otherwise this matches just about anything
     ;; containing a number with spaces around it.
-    ("^\\([^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)
+    ("^\\([^:( \t\n]+\\)[ \t]*[:(][ \t]*\\([0-9]+\\)[:) \t]" 1 2)
 
     ;; 4.3BSD lint pass 2
     ;;         strcmp: variable # of args. llib-lc(359)  ::  /usr/src/foo/foo.c(8)